package com.gy.api;


import com.aaa.entity.OrderBackfee;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gy.service.OrderBackfeeService;
import com.gy.vo.ChargeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author GaoYa
 * @Date 2023/3/24 17:08
 * @Version 1.5
 */
@RestController
@RequestMapping("/charge/api/")
public class OrderBackController {
    @Autowired
    private OrderBackfeeService orderBackfeeService;


    /**
     * 退费查询以及分页
     * @param current
     * @param size
     * @return
     */
    @PostMapping("findAll/{current}/{size}")
    public Result<IPage<OrderBackfee>> findAll(
            @PathVariable Integer current,
            @PathVariable Integer size,
            @RequestBody ChargeVo chargeVo
            ){
        return  orderBackfeeService.findAll(current, size,chargeVo);
    }


}
